﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BatDongSan
{
    public partial class News : System.Web.UI.Page
    {
        public static int _idparent;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                try
                {
                    _idparent = Convert.ToInt32(Request.QueryString["idt"]);
                    if (_idparent > 0)
                    {
                        //Utility.LoadHeader(Page, Global.idCulture(), _idparent, Global.strConnect());
                        //Uct_News_Menu1.LoadMenuChild(_idparent);
                        Uct_News1.LoadNews(_idparent);
                    }
                    else
                    {
                        //Utility.LoadHeader(Page, Global.idCulture(), 1, Global.strConnect());
                        //Uct_News_Menu1.LoadMenuChild(1);
                        Uct_News1.LoadNews(1);
                    }
                }
                catch { }
            }
        }
    }
}